package com.lhj.library.application.convert;

import com.lhj.library.application.dto.AuthDTO;
import com.lhj.library.application.dto.UserDTO;
import com.lhj.library.common.entity.PageResult;
import com.lhj.library.domain.entity.UserBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface UserDtoConverter {
    UserDtoConverter INSTANCE = Mappers.getMapper(UserDtoConverter.class);

    UserBO convertDtoToUserBo(UserDTO userDTO);
    UserBO convertAuthDtoToUserBo(AuthDTO authDTO);

    UserDTO convertBotoDto(UserBO userBO);

    PageResult<UserDTO> convertBoToDtoPage(PageResult<UserBO> boPageResult);




}
